import {createStore, applyMiddleware} from 'redux';
import thunk from 'redux-thunk';
import RootReducer from './reducers';

export default function configureStore(initialState) {
    const store = createStore(RootReducer, initialState, applyMiddleware(thunk));
    return store;
}